a11y: Fix headers
authorBenjamin Otte <otte@redhat.com>
Thu, 5 Apr 2018 15:05:21 +0000 (17:05 +0200)
committerBenjamin Otte <otte@redhat.com>
Thu, 5 Apr 2018 15:05:21 +0000 (17:05 +0200)
We were getting a gcc warning before.

gtk/a11y/gtkaccessibility.h
gtk/a11y/gtkwindowaccessible.c
gtk/a11y/gtkwindowaccessibleprivate.h [new file with mode: 0644]
gtk/gtkwindow.c

index a62a13f8b18f8540dbfc71c42d5138cc02f0ad13..41d98067cd7f38c27773d58c0d514e993616aff4 100644 (file)
@@ -28,9 +28,6 @@ void      _gtk_accessibility_init              (void);
 gboolean  _gtk_accessibility_key_snooper       (GtkWidget   *widget,
                                                 GdkEventKey *event);
 
-void      _gtk_window_accessible_set_is_active (GtkWindow   *window,
-                                                gboolean     is_active);
-
 G_END_DECLS
 
 #endif /* __GTK_ACCESSIBILITY_H__ */
index a05f5942cf69172ab3741cbce5118400aff4e23e..268f5b0c6023ce6c2088d00734aa4262f8297c8e 100644 (file)
 
 #include "config.h"
 
-#include <gtk/gtk.h>
+#include "gtkwindowaccessibleprivate.h"
 
 #include "gtkaccessibility.h"
-#include "gtkwidgetaccessibleprivate.h"
-#include "gtkwindowaccessible.h"
 #include "gtktoplevelaccessible.h"
+#include "gtkwidgetaccessibleprivate.h"
+
+#include "gtklabel.h"
 #include "gtkwidgetprivate.h"
 #include "gtkwindowprivate.h"
 
diff --git a/gtk/a11y/gtkwindowaccessibleprivate.h b/gtk/a11y/gtkwindowaccessibleprivate.h
new file mode 100644 (file)
index 0000000..ba2fbfb
--- /dev/null
@@ -0,0 +1,30 @@
+/* GTK+ - accessibility implementations
+ * Copyright (C) 2018  Benjamin Otte <otte@gnome.org>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef __GTK_WINDOW_ACCESSIBLE_PRIVATE_H__
+#define __GTK_WINDOW_ACCESSIBLE_PRIVATE_H__
+
+#include <gtk/a11y/gtkwindowaccessible.h>
+
+G_BEGIN_DECLS
+
+void            _gtk_window_accessible_set_is_active    (GtkWindow              *window,
+                                                         gboolean                is_active);
+
+G_END_DECLS
+
+#endif /* __GTK_WINDOW_ACCESSIBLE_PRIVATE_H__ */
index fbc782da06335bb7fc9527ebdb9e3ff387c65a64..4d8b284283faadecd6c0d451a1bd0af08b4a1872 100644 (file)
@@ -67,7 +67,7 @@
 #include "gtkwidgetprivate.h"
 #include "gtkwindowgroup.h"
 
-#include "a11y/gtkwindowaccessible.h"
+#include "a11y/gtkwindowaccessibleprivate.h"
 #include "a11y/gtkcontaineraccessibleprivate.h"
 #include "inspector/init.h"
 #include "inspector/window.h"